<?php

define('ACC',true);
require_once('./include/init.php');

$name = isset($_SESSION['username'])?$_SESSION['username']:'';

//从数据库 获取商品数据
$goods = new goodModel;
$newlist = $goods->getNewGoods();

//获取五个新品商品
//获取女装这个 顶级分类下面的 子分类下面的 几条数据
$wumenId = 4;  //女士正装这个 顶极分类的ID
$treelist = $goods->getColumnDetail($wumenId);

$menId = 1; //男士正装分类下的五个新品
$menlist = $goods->getColumnDetail($menId);

//获取销量排名前二的个女装
$twoWumen = $goods->getColumnDetail($wumenId,9,0);
//获取销量排名前二的男装
$twoMen = $goods->getColumnDetail($menId,9,0);

require_once('./view/front/index.html');


//面包屑笔记
/*
  <?php foreach($nav as $c) { ?>
      <code>&gt;</code>
      <a href="category.php?cat_id=<?php echo $c['cat_id'];?>">
      <?php echo $c['cat_name']; ?>
      </a>
      <?php } ?>
*/

?>